package com.bgrconsulting.stockorderentry.service.dao;

import java.util.HashMap;
import java.util.Map;

import com.bgrconsulting.stockorderentry.service.converter.response.PreviewChangeEquityOrderResponseConverter;
import com.bgrconsulting.stockorderentry.service.converter.response.PreviewEquityOrderResponseConverter;
import com.bgrconsulting.stockorderentry.service.model.response.PreviewChangeEquityOrderResponse;
import com.bgrconsulting.stockorderentry.service.model.response.PreviewEquityOrderResponse;

public enum PreviewChangeEquityOrderResponseDao {
	instance;
	
	    
		private Map<String, PreviewChangeEquityOrderResponseConverter> contentProvider = new HashMap<String, PreviewChangeEquityOrderResponseConverter>();
		
		private PreviewChangeEquityOrderResponseDao() {
			
		}
		
		private PreviewChangeEquityOrderResponseDao(PreviewChangeEquityOrderResponse previewEquityOrderResponse) {
			
			PreviewChangeEquityOrderResponseConverter previewEquityOrderResponseConverter = new PreviewChangeEquityOrderResponseConverter(previewEquityOrderResponse);
		
			contentProvider.put(previewEquityOrderResponse.getEquityOrderResponse().getAccountId(), previewEquityOrderResponseConverter);
			
		}
		
		public Map<String, PreviewChangeEquityOrderResponseConverter> getModel(){
			return contentProvider;
		}


}
